package erp.education.server.beans.implementation.admission.transaction;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import erp.education.client.admission.transaction.ApplicationFormRequest;
import erp.education.server.beans.implementation.BaseService;
import erp.education.server.beans.implementation.ResultResponse;
import erp.education.server.beans.implementation.ServiceObject;
import erp.education.server.beans.interfaces.admission.transaction.ApplicationFormServiceI;
import erp.education.server.beans.interfaces.user.transaction.ServiceObjectI;
import erp.education.server.db.exceptions.DbExceptions;

@Component("applicationFormService")
public class ApplicationFormService extends BaseService implements
		ApplicationFormServiceI {

	@Override
	public ServiceObjectI applicationLoadLoadSevice(
			ApplicationFormRequest applicationFormRequest) throws DbExceptions {
		ServiceObjectI response = new ServiceObject();
		ResultResponse holder = new ResultResponse();
		List result = new ArrayList();
		result.add(studentExtraInfoDao.getStudentExtraInfo());

		holder.setResultList(result);
		response.setResponseObject(holder);
		return response;
	}

	@Override
	public ServiceObjectI saveUpdateApplicationDetails(
			ApplicationFormRequest applicationFormRequest) throws DbExceptions {
		ServiceObjectI response = new ServiceObject();
		ResultResponse holder = new ResultResponse();
		List result = new ArrayList();

		holder.setResultList(result);
		response.setResponseObject(holder);
		return response;
	}
}
